package com.sharding.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class Student {
    private Long id;
    private String name;
    private String age;

    public static void main(String args[]){
        String key = String.format("deal_speech_recognition:requestId+%s",111122222L);;
        ThreadLocal threadLocal1 = new ThreadLocal();
        ThreadLocal threadLocal = new ThreadLocal();

        int i = Runtime.getRuntime().availableProcessors();
        threadLocal1.set(i);
        threadLocal.set("22222");
        System.out.println("对象一"+threadLocal1.get());
        System.out.println("对象二"+threadLocal.get());
    }
}
